#! /bin/rwsh --init-file
.try_catch_recursive .file_open_failure {.nop
  .source /non-existent/file/to/test/failure}
.function .raw_command -- cmd {.echo $cmd; .echo (
)}
.global A \
.set SHELL /bin/rwsh
.nop .function .run_logic -- cmd [args ...] {.nop
  .signal_handler &{.internal_functions}$ {&&* {.argfunction}}
  .mapped_argfunction {&&* {.argfunction}}
  &&* {.argfunction}}
.function .before_command -- args ... [.{argfunction}] {.nop $args}
.function .after_command -- args ... [.{argfunction}] {.nop $args}
.function .prompt {.echo \$}
.function .vars {.internal_vars}
.source /etc/rwshrc-basic $argv$
.function .shutdown -- args ... {
  .nop $args
  .combine $nl (now terminating normally) $nl}
